/*
cap program drop project_labeling
program define project_labeling

syntax varlist, suffix(name)

	set more off

cap label variable  fam_asb_`suffix'                     "Antisocial behaviors"
cap label variable   drugssellever_`suffix'              "Usually sells drugs"
cap label variable   stealnb_`suffix'                    "# of thefts/robberies in past two weeks"
cap label variable       stealtakethingsx_`suffix'       "Took something behind someone not for you (stole)"
cap label variable       stealmistakecorrx_`suffix'      "Corrected someone's mistake (stole unwatched items)"
cap label variable       stealscrapex_`suffix'           "Scraped from others (Cheating)"
cap label variable       stealpickpocketx_`suffix'       "Pick-pocketed someone"
cap label variable       stealscamx_`suffix'             "Scammed someone (Sold false goods or conned)"
cap label variable       stealblackdeedx_`suffix'        "Black deed business (Con artistry)"
cap label variable       stealmuggerx_`suffix'           "Mugged someone"
cap label variable       stealarmedrobx_`suffix'         "Armed robbery"
cap label variable   disputes_all_`suffix'               "Disputes and fights in past two weeks, z-score"
cap label variable   	fightsmlneigh_`suffix'           "Small palava (dispute) with a neighbor"
cap label variable   	fightbigneigh_`suffix'           "Large fight with a neighbo"
cap label variable   	fightphys_`suffix'               "Physical fight"
cap label variable   	fightweapon_`suffix'             "Engaged in a fight with a weapon"
cap label variable   	fightsmlleader_`suffix'          "Small palava (dispute) with a leader"
cap label variable   	fightbigleader_`suffix'          "Large fight with leader"
cap label variable   	fightsmlpolice_`suffix'          "Small palava (dispute) with the police"
cap label variable   	fightbigpolice_`suffix'          "Large fight with police"
cap label variable   	fine_`suffix'                    "Fined for a fight"
cap label variable   carryweapon_`suffix'                "Carries a weapon on body"
cap label variable   arrested_`suffix'                   "Arrested in past two weeks"
cap label variable   asbhostil_`suffix'                  "Aggressive behaviors, z-score"
cap label variable   	badreact_resc_`suffix'           "In the last 4 weeks, have you been quick to react against others?"
cap label variable   	badadvice_resc_`suffix'          "In the last 4 weeks, have you refused to take advice?"
cap label variable   	hardjokes_resc_`suffix'          "Do you sometimes make hard jokes about people?"
cap label variable   	baddestroy_resc_`suffix'         "In the last 4 weeks, have you intentionally destroyed property?"
cap label variable   	cheat_resc_`suffix'              "Do you sometimes cheat or scrape from people?"
cap label variable   	troublesome_resc_`suffix'        "In the last 4 weeks, have you ever had confusion with people about things?"
cap label variable   	frustrated_resc_`suffix'         "In the last 4 weeks, did you let others see your frustration when you were frustrated?"
cap label variable   	threaten_resc_`suffix'           "In the last 4 weeks, have you threatened other people?"
cap label variable   	takethings_resc_`suffix'         "In the last 4 weeks, have you taken things from behind other people without asking them?"
cap label variable   	selfdiscipline_resc_`suffix'     "In the last 4 weeks, have you easily controlled your vexation when vexed? (-)"
cap label variable   	asb_reactlose_resc_`suffix'      "Do you get vexed when you lose a game?"
cap label variable   	asb_reacthit_resc_`suffix'       "Can you feel fine when you hit or yell at somebody?"
cap label variable   	asb_reactdefend_resc_`suffix'    "If you are under attack can you hit that person to defend yourself?"
cap label variable   	asb_reacttease_resc_`suffix'     "When someone teases you, does that make you vexed?"
cap label variable   	asb_proontop_resc_`suffix'       "Do you ever fight to show that you are the stronger person?"
cap label variable   	asb_provandalize_resc_`suffix'   "Do you ever damage things as a joke or for fun?"
cap label variable   	asb_procompetitor_resc_`suffix'  "Do you ever hurt the person you are playing football with for you to win?"
cap label variable   	asb_prophysforce_resc_`suffix'   "Do you ever use force on somebody to do something for you?"
cap label variable   	asb_procuss_resc_`suffix'        "Do you ever cuss somebody to do something for you?"
cap label variable   domabuse_z_`suffix'                 "Verbal/physical abuse of partner, z-score"
cap label variable   	maccuse_resc_`suffix'            "Last month, did you accuse your woman for getting boyfriend?"
cap label variable   	mthreat_resc_`suffix'            "Last month, did you ever tell your woman you will beat her?"
cap label variable   	minsult_resc_`suffix'            "Last month, did you ever cuss your woman?"
cap label variable   	mhit_resc_`suffix'               "Last month did you push, hit, slap or throw something at your wife or girlfriend?"


cap label variable   fam_identity_`suffix'                         "Identity and values"
cap label variable    violatt_`suffix'                             "Anticriminal/antiviolent values"
cap label variable	    attviolence_`suffix'                       "Attitudes toward use of violence (11 questions)"
cap label variable	    	nvstrangerrob_`suffix'                 "If a stranger in the community robs one of your neighbors, is it okay for your neighbor to send people to abuse the stranger?"
cap label variable	    	nvowetakesthg_`suffix'                 "If a man owes you money but refuses to pay, would it be all right to take something from his home?"
cap label variable	    	nvknowncriminal_`suffix'               "If someone kills a known criminal in your community, it is ok if the police don't investigate?"
cap label variable	    	nvstorekeeperpunish_resc_`suffix'      "If a rogue steals from a market, and the storekeepers chase him and beat him, should the storekeepers be punished? (-)"
cap label variable	    	nvkillstore_resc_`suffix'              "What if they mistakenly kill the rogue? Should the storekeepers be punished? (-)"
cap label variable	    	nvbeatwoman_`suffix'                   "Suppose your friend's wife ran off with another man and stole his money and belongings. Would it be good for him to chase and beat that woman?"
cap label variable	    	nvdestroyproperty_`suffix'             "If a 'highman' is caught should his property be destroyed?"
cap label variable	    	nvstealfriendsgirl_`suffix'            "Suppose someone tries to steal your friend's girlfriend. Your friend is talking about getting the boys together to threaten the man. Would you join in?"
cap label variable	    	nvcorruptleaderbeaten_`suffix'         "If a local leader is corrupt and taking money for himself, is it all right if he is beaten by the community?"
cap label variable	    	nvbeatwife_`suffix'                    "If a wife challenges her husband in public, is it ok for her husband to beat her?"
cap label variable	    	nvgirlrape_`suffix'                    "Suppose a man rapes a girl in your community. He is arrested, but he bribes the police and goes free. If some people beat that police man, would you join in?"
cap label variable	    attcriminality_`suffix'                    "Attitudes toward criminality (12 questions)"
cap label variable	    	attstchinamanbeat_`suffix'             "Imagine that a Chinese man cheats another man of his wage for carrying a load. Would it be ok for that man to take his friends to beat the Chinese man hard, and to take his money?"
cap label variable	    	attstblackmoney_`suffix'               "If your best friend has some counterfeit money that need to be washed with mercury, will you join him in the search of the mercury to get lots of money?"
cap label variable	    	attstnightops_resc_`suffix'            "Is it wrong for someone in your community to make money by entering someone's house at night and taking their valuable things?"
cap label variable	    	attsttaxiwallet_`suffix'               "After being down on luck, a man finds a wallet in a taxi cab with lots of money and the driver's license. Should he take the money for himself before giving the wallet to the police or a radio station?"
cap label variable	    	attstmoneydroptake_`suffix'            "Your family has no money to pay rent and will soon be homeless. You see $100 USD fall from a man's back pocket. Is it ok to take it and not tell him?"
cap label variable	    	attstfamilylec_`suffix'                "Is it okay for a man to hook up his house to an electricity cable from his family member to take free electricity behind his back, even though his family member will have to pay for it?"
cap label variable	    	attstmoneybagtake_`suffix'             "A man's wife was in labour pain but he had no money. He came across a market woman's wallet filled with all her day's earnings. Is it okay for him to take the bag?"
cap label variable	    	attstmoneyhangtake_`suffix'            "If a man's $100 USD bill is hanging out of his back pocket and you have a clear change to jerk it with no one catching you, will you feel bad if you take it, even if you don't need it?"
cap label variable	    	attstroomvaluablestake_`suffix'        "If a stranger left his room door open with all his valuables in there and no one is around, is it okay to correct his mistake?"
cap label variable	    	attselfdrugsell_`suffix'               "Would you feel fine if your hustle was selling diazepam, bubble, 10-10, or any other drugs llike this?"
cap label variable	    	attstknownindiv_`suffix'               "If a friend left his room door open with his money inside and no one is around, is it okay to take his money?"
cap label variable	    	attstifreturn_`suffix'                 "If you are working in a business, and you have access to your boss's money, would you feel fine taking that money for yourself, if you plan to return it later?"
cap label variable	    politicalviol_`suffix'                     "Attitudes toward political violence (6 questions)"
cap label variable	    	pvhypdemstpaid_`suffix'                "Suppose the politician that you support does not win and there was no cheating. If that politician asks you to protest for him, would you do so?"
cap label variable	    	pvhyppalpaid_`suffix'                  "Suppose the politician that you support does not win and there was no cheating. If that politician asks you to loot for him, would you do so?"
cap label variable	    	pvhyppalpaid200ld_`suffix'             "Suppose the politician that you support does not win and there was no cheating. If that politician asks you to loot for him for 200 LD, would you do so?"
cap label variable	    	pvhypdemstpaidwcheat_`suffix'          "Suppose the politician that you support does not win but there was cheating. If that politician asks you to protest for him, would you do so?"
cap label variable	    	pvhyppalpaidwcheat_`suffix'            "Suppose the politician that you support does not win but there was cheating. If that politician asks you to loot for him, would you do so?"
cap label variable	    	pvhyppalpaid200ldwcheat_`suffix'       "Suppose the politician that you support does not win but there was cheating. If that politician asks you to loot for him for 200 LD, would you do so?"
cap label variable    appearanceindex_`suffix'                     "Index of appearance, z-score"
cap label variable		    clothescond_resc_`suffix'              "Condition of clothes (0-2)"
cap label variable		    shoecond_resc_`suffix'                 "Condition of shoes (0-2)"
cap label variable		    breath_resc_`suffix'                   "Cleanliness of breath (0-2)"
cap label variable		    cleanface_resc_`suffix'                "Cleanliness of face (0-2)"
cap label variable		    hair_resc_`suffix'                     "Cleanliness of hair (0-2)"
cap label variable		    fingernails_resc_`suffix'              "Cleanliness of fingernails (0-2)"
cap label variable    prosocial_`suffix'                           "Prosocial behavior, z-score"
cap label variable		groups_`suffix'                            "Number of active groups"
cap label variable		groupleadindex_`suffix'                    "Group leader index (4 questions)"
cap label variable			leader_`suffix'                        "Community leader now (0-1)"
cap label variable			bigman_`suffix'                        "Big man in community (0-1)"
cap label variable			groupcommleader_`suffix'               "Group community leader (0-1)"
cap label variable			startgroup_resc_`suffix'               "Start group (0-1)"
cap label variable		publicgoodcontrnumb_`suffix'               "# of public good contributions (6 months)"
cap label variable		trustindex_`suffix'                        "Trust index (4 questions)"
cap label variable			trustrelatives_resc_`suffix'           "Trusts relatives (0-3)"
cap label variable			trusttleader_resc_`suffix'             "Trusts leaders (0-3)"
cap label variable			trustngos_resc_`suffix'                "Trusts NGOs (0-3)"
cap label variable			trustipal_resc_`suffix'                "Trusts IPA (0-3)"


cap label variable  fam_mental_`suffix'                      "Positive self-regard/mental health"
cap label variable  fam_mental_pos_`suffix'                  "Positive self-regard"
cap label variable  neuroticstd_`suffix'                     "Neuroticism (8 questions)†"
cap label variable			nrtc_sad_resc_`suffix'           "Can feel sad one time (0-3)"
cap label variable			nrtc_worry_resc_`suffix'         "Worry about things (0-3)"
cap label variable			nrtc_threaten_resc_`suffix'      "Quick to feel threatened (0-3)"
cap label variable			nrtc_offend_resc_`suffix'        "Easily offended (0-3)"
cap label variable			nrtc_stress_resc_`suffix'        "Easily stressed (0-3)"
cap label variable			nrtc_disturb_resc_`suffix'       "Easily disturbed (0-3)"
cap label variable			nrtc_relax_resc_`suffix'         "Feel relaxed most of time (-) (0-3)"
cap label variable			nrtc_bother_resc_`suffix'        "Nothing can bother me (-) (0-3)"
cap label variable	locuscontrstd_`suffix'                   "Locus of control (8 questions)"
cap label variable			lc_choicesfuture_resc_`suffix'   "Your choices determine your future (0-3)"
cap label variable			lc_nocontrol_resc_`suffix'       "You have small control over your life (-) (0-3)"
cap label variable			lc_bizluck_resc_`suffix'         "Success in business is due to luck (-) (0-3)"
cap label variable			lc_tryhard_resc_`suffix'         "Trying hard can make your life better (0-3)"
cap label variable			lc_planswork_resc_`suffix'       "Your can bring your plans into fruition (0-3)"
cap label variable			lc_badluck_resc_`suffix'         "Bad things in life are due to bad luck (-) (0-3)"
cap label variable			lc_peoplestreets_resc_`suffix'   "People are homeless because of their own fault (0-3)"
cap label variable			lc_success_resc_`suffix'         "Success comes from hard work (0-3)"
cap label variable	selfesteemstd_`suffix'                   "Self esteem (8 questions)"
cap label variable			se_satisfied_resc_`suffix'       "Satisfied with yourself? (0-3)"
cap label variable			se_useless_resc_`suffix'         "Feel useless? (-) (0-3)"
cap label variable			se_fail_resc_`suffix'            "Think everything will fail? (-) (0-3)"
cap label variable			se_respect_resc_`suffix'         "Don't get enough respect? (-) (0-3)"
cap label variable			se_goodperson_resc_`suffix'      "Feel at least as good as most people (0-3)"
cap label variable			se_good4nothing_resc_`suffix'    "Feel like a good person but doing nothing (-) (0-3)"
cap label variable			se_bizwell_resc_`suffix'         "Do business as well as most people (0-3)"
cap label variable			se_notproud_resc_`suffix'        "Feel shame (-) (0-3)"
cap label variable  fam_mental_dep_`suffix'                  "Depression and distress"
cap label variable  depression_`suffix'                      "Depression (6 questions)"
cap label variable    	    baddo_resc_`suffix'              "Feels bad doing things you normally do (0-3)"
cap label variable   	    badhear_resc_`suffix'            "Hard time hearing people when thinking about bad things (0-3)"
cap label variable   	    badsad_resc_`suffix'             "Felt sad or down-hearted (0-3)"
cap label variable   	    badtired_resc_`suffix'           "Feels tired when even not doing anything (0-3)"
cap label variable   	    badeat_resc_`suffix'             "Lost appetite from feeling bad (0-3)"
cap label variable   	    badimportant_resc_`suffix'       "Felt unimportant to everyone (0-3)"
cap label variable	distress_`suffix'                        "Distress (12 questions)"
cap label variable			thinkbad_resc_`suffix'           "Sits and thinks bad things"
cap label variable			baddream_resc_`suffix'           "Has bad dreams"
cap label variable			badagain_resc_`suffix'           "Seems like bad things happening again"
cap label variable			badbody_resc_`suffix'            "Sweat, feel warm, etc when thinking about bad things"
cap label variable			badaway_resc_`suffix'            "Stay away from places"
cap label variable			badspoiled_resc_`suffix'         "Feels that your heart is spoiled"
cap label variable			badtalk_resc_`suffix'            "Talks to yourself"
cap label variable			badfrust_resc_`suffix'           "Feels frustrated"
cap label variable			badspirit_resc_`suffix'          "Thinks someone's spirit is hampering you"
cap label variable			baddry_resc_`suffix'             "Body is dry from worrying"
cap label variable			badsat_resc_`suffix'             "Heart does not feel satisfied"
cap label variable			badburn_resc_`suffix'            "Feels heart burning"
cap label variable	wellbeing_`suffix'                       "Summary index of subjective well being (3)"
cap label variable		laddernow_`suffix'                   "Absolute level today, 1-10 ladder"
cap label variable		subwellbeing_`suffix'                "Overall level hsubjective wellbeing, (1-30)"
cap label variable			happiness_`suffix'               "Happiness (1-10)"
cap label variable			satisfaction_`suffix'            "Satisfaction (1-10)"
cap label variable			health_`suffix'                  "Health (1-10)"
cap label variable		relwellbeing_`suffix'                "Relative to your community, (1-40+)"
cap label variable			ladderrich_`suffix'              "Relative wealth (1-10)"
cap label variable			ladderresp_`suffix'              "Relative respect (1-10)"
cap label variable			ladderpower_`suffix'             "Relative power (1-10)"
cap label variable			ladderaccess_`suffix'            "Relative access (1-10)"
cap label variable  subabuse_`suffix'                        "Substance abuse (0-3 index)"
cap label variable          drinkboozeever_`suffix'          "Usually drinks (0-1)"
cap label variable          grassever_`suffix'               "Usually uses marijuana (0-1)"
cap label variable          harddrugsever_`suffix'           "Usually takes hard drugs (0-1)"
cap label variable  fam_network_`suffix'                     "Quality of social networks, (z-score)"
cap label variable     peerqualitystd_`suffix'               "Peers quality, mean of 30 questions"
cap label variable			peerschool_`suffix'              "Friend in school (0-1)"
cap label variable			peercommmtg_`suffix'             "Friend participates in community meetings (0-1)"
cap label variable			peerchurch_`suffix'              "Friend goes to church (0-1)"
cap label variable			peerwork_`suffix'                "Friend works hard (0-1)"
cap label variable			peerbusiness_`suffix'            "Friend has business or job (0-1)"
cap label variable			peersave_`suffix'                "Friend saves money regularly (0-1)"
cap label variable			peertrust_`suffix'               "Friend gives good advice (0-1)"
cap label variable			peershare_`suffix'               "Friend likely to share (0-1)"
cap label variable			peercheer_`suffix'               "Friend cheers you up (0-1)"
cap label variable			peerguard_`suffix'               "Fried trusted to guard valuables (0-1)"
cap label variable			peerbeg_resc_`suffix'            "Friend begs for money (-) (0-1)"
cap label variable			peerdrunk_resc_`suffix'          "Friend gets drunk regularly (-) (0-1)"
cap label variable			peerdrugs_resc_`suffix'          "Friend uses drugs regularly (-) (0-1)"
cap label variable			peerpickpocket_resc_`suffix'     "Friend pickpockets regularly (-) (0-1)"
cap label variable			peerburglary_resc_`suffix'       "Friend burglarizes (-) (0-1)"
cap label variable			peerrobbers_resc_`suffix'        "Friend is armed robber (-) (0-1)"
cap label variable			peergamble_resc_`suffix'         "Friend gambles (-) (0-1)"
cap label variable			peerexcom_resc_`suffix'          "Friend is ex-combatant (-) (0-1)"
cap label variable			peercomdr_resc_`suffix'          "Friend is former commander (-) (0-1)"
cap label variable			peersmallpal_resc_`suffix'       "Friend has small fights with others (-) (0-1)"
cap label variable		    peerbigpal_resc_`suffix'         "Friend has large fights with others (-) (0-1)"
cap label variable		famsupportindex_`suffix'             "Quality of family relations"
cap label variable		    famseeoften_resc_`suffix'        "Sees family often (0-3"
cap label variable		    famconcern_resc_`suffix'         "Family concerned about you (0-3)"
cap label variable		    famadvise_resc_`suffix'          "Receives encouragement from family (0-3)"
cap label variable		    famhelp_resc_`suffix'            "Receives help from family when in trouble (0-3)"
cap label variable		rel_commanders_`suffix'              "Ex-commanders ties"
cap label variable			peercomdr_`suffix'               "Friend is ex-military commander (0-1)"
cap label variable			relcomm_`suffix'                 "Close relations with ex-military commander (0-1)"
cap label variable			jobcomm_`suffix'                 "Receives job from ex-military commander (0-1)"
cap label variable			repcomm_`suffix'                 "Reports to commander now (0-1)"
cap label variable		patronlvl_`suffix'                   "Big men ties"
cap label variable			ptrnjob_`suffix'                 "Has patron for job (0-1)"
cap label variable			ptrnbiz_`suffix'                 "Has patron for business needs (0-1)"
cap label variable			ptrnfood_`suffix'                "Has patron for food (0-1)"
cap label variable			ptrnschl_`suffix'                "Has patron for school fees (0-1)"
cap label variable			ptrnhsing_`suffix'               "Has patron for housing (0-1)"

cap label variable    timepref_`suffix'                             "Forward-looking time preferences"
cap label variable    timepref_p_`suffix'                           "Patience ($\delta$) summary index, z-score"
cap label variable       patient_game_real_`suffix'                 "Incentivized trade-offs (0-6)"
cap label variable       patient_game_decl_`suffix'                 "Hypothetical trade-offs (0-6)"
cap label variable       d_rate_`suffix'                            "Hypothetical discount rate (.9 to 4)"
cap label variable       timedecl_p_`suffix'                        "Self-reported survey questions on patience, z-score"
cap label variable       	time_decl_patienceladder_`suffix'       "Placing oneself on a 5-rung patience ladder (0-5)"
cap label variable       	time_decl_patient_resc_`suffix'         "I consider myself a patient person (0-3 scale)"
cap label variable       	time_decl_saveproblems_resc_`suffix'    "If I make good money, I save somefor future problems. (0-3 scale)"
cap label variable    timepref_t_`suffix'                           "Time inconsistency ($\beta$) summary index, z-score"
cap label variable      incon_game_real_`suffix'                    "Incentivized trade-offs (-3 - 3)"
cap label variable      incon_game_decl_`suffix'                    "Hypothetical trade-offs (-3 - 3)"
cap label variable      incon_rate_dsct_`suffix'                    "Hypothetical discount rate (-3.1 - 3.1) "
cap label variable      timedecl_t_`suffix'                         "Self-reported (mean of 3), z-score"
cap label variable            time_decl_spendquick_`suffix'         "If I get money, I spend it quickly. (0-3)"
cap label variable            time_decl_celebrate_`suffix'          "If I make good money, I spend a lot celebrating with friends. (0-3)"
cap label variable            th_avdmnywstingfrnds_resc_`suffix'    "I avoid going around friends who waste money. (0-3)"
cap label variable     timepref_real_`suffix'                       "Incentivized trade-offs (patience and time inconsistency), z-score"

cap label variable     selfcontrolnolo_`suffix'                     "Self-control skills"
cap label variable  	  impulsivestd_`suffix'                     "Impulsiveness"
cap label variable              bimpls_buy_resc_`suffix'            "I buy things quick without thinking"
cap label variable              bimpls_act_resc_`suffix'            "I can take action before thinking (-)"
cap label variable              bimpls_talk_resc_`suffix'           "I can just talk without thinking"
cap label variable              bimpls_squirm_resc_`suffix'         "I am not set or relax at lectures"
cap label variable              bimpls_concentrate_resc_`suffix'    "I can catch hard time thinking"
cap label variable              bimpls_present_resc_`suffix'        "I believe in the present rather than the future"
cap label variable              bimpls_control_resc_`suffix'        "I able to control myself (-)"
cap label variable              time_decl_regretspend_resc_`suffix' "I spend money on things and regret it later"
cap label variable  	  conscientiousstd_`suffix'                 "Conscientiousness"
cap label variable  			cnsc_prepare_resc_`suffix'          "I am ready anytime"
cap label variable  			cnsc_details_resc_`suffix'          "I pay attention to things good good"
cap label variable  			cnsc_doitright_resc_`suffix'        "I get everyday work done right away"
cap label variable  			cnsc_plans_resc_`suffix'            "I make plans and go by them"
cap label variable  			cnsc_getby_resc_`suffix'            "I catch hard time to do my work (-)"
cap label variable  			cnsc_work_resc_`suffix'             "I do unasked additional work after finishing my work"
cap label variable  			cnsc_complete_resc_`suffix'         "I can't complete/finish things (-)"
cap label variable  			cnsc_shirk_resc_`suffix'            "I run away from work (-)"
cap label variable  	  gritstd_`suffix'                          "Perseverance/GRIT"
cap label variable  			prsv_overcome_resc_`suffix'         "I have overcome hard times to subdue an important challenge"
cap label variable  			prsv_ambitious_resc_`suffix'        "I can think big about my future"
cap label variable  			prsv_discourage_resc_`suffix'       "Dificult conditions don't discourage me"
cap label variable  			prsv_achieveimp_resc_`suffix'       "My greatest prayer is to be successful in life"
cap label variable  			prsv_driven_resc_`suffix'           "I'm trying hard to make it"
cap label variable  			prsv_changeplan_resc_`suffix'       "I sometime make a plan but later on change my plan to a different one (-)"
cap label variable  			prsv_achievenoimp_resc_`suffix'     "I do not think too much about big things/success (-)"
cap label variable  	  rewardrespstd_`suffix'                    "Reward responsiveness"
cap label variable  			bas_goallout_resc_`suffix'          "When I want something I can go to any corner to make sure I get it."
cap label variable  			bas_noholds_resc_`suffix'           "When I go after something, even the devil in hell can't stop me"
cap label variable  			bas_doforfun_resc_`suffix'          "Most of the time, I will do things for no other reason than that I will enjoy them"
cap label variable  			bas_keepatit_resc_`suffix'          "When I am doing well at something, I will always like to be doing it."
cap label variable  			bas_feelexcite_resc_`suffix'        "When I get something I want, I can jump with happiness and it gives me plenty strength."
cap label variable  			bas_seeopp_resc_`suffix'            "When I see a chance to get something I really like, I can jump with happiness on the spot."
cap label variable  			bas_feelstrongly_resc_`suffix'      "When good things happen to me, it affects me strongly"
cap label variable  			bas_wincontest_resc_`suffix'        "I can jump with happiness when I win a lucky ticket"




end



cap program drop ind_varlabel
program define ind_varlabel
  syntax , varstoind(namelist) indtimes(numlist) suffix(name)

foreach var in `varstoind' {
	forvalues t=1/`indtimes' {
         label var `var'_`suffix' "\quad{`: variable label `var'_`suffix''}"
	}
}

end

dis "`labfam_asb'"

*/



cap program drop varlabel_in
program define varlabel_in
  syntax , varstolabel(namelist) suffix(name)

local  labfam_asb                     "Antisocial behaviors"
local   labdrugssellever              "Usually sells drugs"
local   labstealnb                    "# of thefts/robberies in past two weeks"
local       labstealtakethingsx       "Took something behind someone not for you (stole)"
local       labstealmistakecorrx      "Corrected someones mistake (stole unwatched items)"
local       labstealscrapex           "Scraped from others (Cheating)"
local       labstealpickpocketx       "Pick-pocketed someone"
local       labstealscamx             "Scammed someone (Sold false goods or conned)"
local       labstealblackdeedx        "Black deed business (Con artistry)"
local       labstealmuggerx           "Mugged someone"
local       labstealarmedrobx         "Armed robbery"
local   labdisputes_all_z             "Disputes and fights in past two weeks, z-score"
local   	labfightsmlneigh           "Small palava (dispute) with a neighbor"
local   	labfightbigneigh           "Large fight with a neighbo"
local   	labfightphys               "Physical fight"
local   	labfightweapon             "Engaged in a fight with a weapon"
local   	labfightsmlleader          "Small palava (dispute) with a leader"
local   	labfightbigleader          "Large fight with leader"
local   	labfightsmlpolice          "Small palava (dispute) with the police"
local   	labfightbigpolice          "Large fight with police"
local   	labfine                    "Fined for a fight"
local   labcarryweapon                "Carries a weapon on body"
local   labarrested                   "Arrested in past two weeks"
local   labasbhostilstd               "Aggressive behaviors, z-score"
local   	labbadreact_resc           "In the last 4 weeks, have you been quick to react against others?"
local   	labbadadvice_resc          "In the last 4 weeks, have you refused to take advice?"
local   	labhardjokes_resc          "Do you sometimes make hard jokes about people?"
local   	labbaddestroy_resc         "In the last 4 weeks, have you intentionally destroyed property?"
local   	labcheat_resc              "Do you sometimes cheat or scrape from people?"
local   	labtroublesome_resc        "In the last 4 weeks, have you ever had confusion with people about things?"
local   	labfrustrated_resc         "In the last 4 weeks, did you let others see your frustration when you were frustrated?"
local   	labthreaten_resc           "In the last 4 weeks, have you threatened other people?"
local   	labtakethings_resc         "In the last 4 weeks, have you taken things from behind other people without asking them?"
local   	labselfdiscipline_resc     "In the last 4 weeks, have you easily controlled your vexation when vexed? (-)"
local   	labasb_reactlose_resc      "Do you get vexed when you lose a game?"
local   	labasb_reacthit_resc       "Can you feel fine when you hit or yell at somebody?"
local   	labasb_reactdefend_resc    "If you are under attack can you hit that person to defend yourself?"
local   	labasb_reacttease_resc     "When someone teases you, does that make you vexed?"
local   	labasb_proontop_resc       "Do you ever fight to show that you are the stronger person?"
local   	labasb_provandalize_resc   "Do you ever damage things as a joke or for fun?"
local   	labasb_procompetitor_resc  "Do you ever hurt the person you are playing football with for you to win?"
local   	labasb_prophysforce_resc   "Do you ever use force on somebody to do something for you?"
local   	labasb_procuss_resc        "Do you ever cuss somebody to do something for you?"
local   labdomabuse_z                 "Verbal/physical abuse of partner, z-score"
local   	labmaccuse_resc            "Last month, did you accuse your woman for getting boyfriend?"
local   	labmthreat_resc            "Last month, did you ever tell your woman you will beat her?"
local   	labminsult_resc            "Last month, did you ever cuss your woman?"
local   	labmhit_resc               "Last month did you push, hit, slap or throw something at your wife or girlfriend?"


local   labfam_identity                         "Identity and values"
local    labviolatt                             "Anticriminal/antiviolent values"
local	    labattviolence                   "Attitudes toward use of violence (11 questions)"
local	    	labnvstrangerrob                 "If a stranger in the community robs one of your neighbors, is it okay for your neighbor to send people to abuse the stranger?"
local	    	labnvowetakesthg                 "If a man owes you money but refuses to pay, would it be all right to take something from his home?"
local	    	labnvknowncriminal               "If someone kills a known criminal in your community, it is ok if the police dont investigate?"
local	    	labnvstorekeeperpunish_resc      "If a rogue steals from a market, and the storekeepers chase him and beat him, should the storekeepers be punished? (-)"
local	    	labnvkillstore_resc              "What if they mistakenly kill the rogue? Should the storekeepers be punished? (-)"
local	    	labnvbeatwoman                   "Suppose your friends wife ran off with another man and stole his money and belongings. Would it be good for him to chase and beat that woman?"
local	    	labnvdestroyproperty             "If a highman is caught should his property be destroyed?"
local	    	labnvstealfriendsgirl            "Suppose someone tries to steal your friends girlfriend. Your friend is talking about getting the boys together to threaten the man. Would you join in?"
local	    	labnvcorruptleaderbeaten         "If a local leader is corrupt and taking money for himself, is it all right if he is beaten by the community?"
local	    	labnvbeatwife                    "If a wife challenges her husband in public, is it ok for her husband to beat her?"
local	    	labnvgirlrape                    "Suppose a man rapes a girl in your community. He is arrested, but he bribes the police and goes free. If some people beat that police man, would you join in?"
local	    labattcriminality                "Attitudes toward criminality (12 questions)"
local	    	labattstchinamanbeat             "Imagine that a Chinese man cheats another man of his wage for carrying a load. Would it be ok for that man to take his friends to beat the Chinese man hard, and to take his money?"
local	    	labattstblackmoney               "If your best friend has some counterfeit money that need to be washed with mercury, will you join him in the search of the mercury to get lots of money?"
local	    	labattstnightops_resc            "Is it wrong for someone in your community to make money by entering someones house at night and taking their valuable things?"
local	    	labattsttaxiwallet               "After being down on luck, a man finds a wallet in a taxi cab with lots of money and the drivers license. Should he take the money for himself before giving the wallet to the police or a radio station?"
local	    	labattstmoneydroptake            "Your family has no money to pay rent and will soon be homeless. You see \$100 USD fall from a mans back pocket. Is it ok to take it and not tell him?"
local	    	labattstfamilylec                "Is it okay for a man to hook up his house to an electricity cable from his family member to take free electricity behind his back, even though his family member will have to pay for it?"
local	    	labattstmoneybagtake             "A mans wife was in labour pain but he had no money. He came across a market womans wallet filled with all her days earnings. Is it okay for him to take the bag?"
local	    	labattstmoneyhangtake            "If a mans \$100 USD bill is hanging out of his back pocket and you have a clear change to jerk it with no one catching you, will you feel bad if you take it, even if you dont need it?"
local	    	labattstroomvaluablestake        "If a stranger left his room door open with all his valuables in there and no one is around, is it okay to correct his mistake?"
local	    	labattselfdrugsell               "Would you feel fine if your hustle was selling diazepam, bubble, 10-10, or any other drugs like this?"
local	    	labattstknownindiv               "If a friend left his room door open with his money inside and no one is around, is it okay to take his money?"
local	    	labattstifreturn                 "If you are working in a business, and you have access to your bosss money, would you feel fine taking that money for yourself, if you plan to return it later?"
local	    labpoliticalviol                 "Attitudes toward political violence (6 questions)"
local	    	labpvhypdemstpaid                "Suppose the politician that you support does not win and there was no cheating. If that politician asks you to protest for him, would you do so?"
local	    	labpvhyppalpaid                  "Suppose the politician that you support does not win and there was no cheating. If that politician asks you to loot for him, would you do so?"
local	    	labpvhyppalpaid200ld             "Suppose the politician that you support does not win and there was no cheating. If that politician asks you to loot for him for 200 LD, would you do so?"
local	    	labpvhypdemstpaidwcheat          "Suppose the politician that you support does not win but there was cheating. If that politician asks you to protest for him, would you do so?"
local	    	labpvhyppalpaidwcheat            "Suppose the politician that you support does not win but there was cheating. If that politician asks you to loot for him, would you do so?"
local	    	labpvhyppalpaid200ldwcheat       "Suppose the politician that you support does not win but there was cheating. If that politician asks you to loot for him for 200 LD, would you do so?"
local    labappearanceindex                     "Index of appearance, z-score"
local		    labclothescond_resc              "Condition of clothes (0-2)"
local		    labshoecond_resc                 "Condition of shoes (0-2)"
local		    labbreath_resc                   "Cleanliness of breath (0-2)"
local		    labcleanface_resc                "Cleanliness of face (0-2)"
local		    labhair_resc                     "Cleanliness of hair (0-2)"
local		    labfingernails_resc              "Cleanliness of fingernails (0-2)"
local    labprosocial                           "Prosocial behavior, z-score"
local		labgroups                            "Number of active groups"
local		labgroupleadindex                    "Group leader index (4 questions)"
local			lableader                        "Community leader now (0-1)"
local			labbigman                        "Big man in community (0-1)"
local			labgroupcommleader               "Group community leader (0-1)"
local			labstartgroup_resc               "Start group (0-1)"
local		labpublicgoodcontrnumb               "# of public good contributions (6 months)"
local		labtrustindex                        "Trust index (4 questions)"
local			labtrustrelatives_resc           "Trusts relatives (0-3)"
local			labtrusttleader_resc             "Trusts leaders (0-3)"
local			labtrustngos_resc                "Trusts NGOs (0-3)"
local			labtrustipal_resc                "Trusts IPA (0-3)"


local  labfam_mental                      "Positive self-regard/mental health"
local  labfam_mental_pos                  "Positive self-regard"
local  labneuroticstd                     "Neuroticism (8 questions)†"
local			labnrtc_sad_resc           "Can feel sad one time (0-3)"
local			labnrtc_worry_resc         "Worry about things (0-3)"
local			labnrtc_threaten_resc      "Quick to feel threatened (0-3)"
local			labnrtc_offend_resc        "Easily offended (0-3)"
local			labnrtc_stress_resc        "Easily stressed (0-3)"
local			labnrtc_disturb_resc       "Easily disturbed (0-3)"
local			labnrtc_relax_resc         "Feel relaxed most of time (-) (0-3)"
local			labnrtc_bother_resc        "Nothing can bother me (-) (0-3)"
local	lablocuscontrstd                   "Locus of control (8 questions)"
local			lablc_choicesfuture_resc   "Your choices determine your future (0-3)"
local			lablc_nocontrol_resc       "You have small control over your life (-) (0-3)"
local			lablc_bizluck_resc         "Success in business is due to luck (-) (0-3)"
local			lablc_tryhard_resc         "Trying hard can make your life better (0-3)"
local			lablc_planswork_resc       "Your can bring your plans into fruition (0-3)"
local			lablc_badluck_resc         "Bad things in life are due to bad luck (-) (0-3)"
local			lablc_peoplestreets_resc   "People are homeless because of their own fault (0-3)"
local			lablc_success_resc         "Success comes from hard work (0-3)"
local	labselfesteemstd                   "Self esteem (8 questions)"
local			labse_satisfied_resc       "Satisfied with yourself? (0-3)"
local			labse_useless_resc         "Feel useless? (-) (0-3)"
local			labse_fail_resc            "Think everything will fail? (-) (0-3)"
local			labse_respect_resc         "Dont get enough respect? (-) (0-3)"
local			labse_goodperson_resc      "Feel at least as good as most people (0-3)"
local			labse_good4nothing_resc    "Feel like a good person but doing nothing (-) (0-3)"
local			labse_bizwell_resc         "Do business as well as most people (0-3)"
local			labse_notproud_resc        "Feel shame (-) (0-3)"
local  labfam_mental_dep                  "Depression and distress"
local  labdepression                      "Depression (6 questions)"
local    	    labbaddo_resc              "Feels bad doing things you normally do (0-3)"
local   	    labbadhear_resc            "Hard time hearing people when thinking about bad things (0-3)"
local   	    labbadsad_resc             "Felt sad or down-hearted (0-3)"
local   	    labbadtired_resc           "Feels tired when even not doing anything (0-3)"
local   	    labbadeat_resc             "Lost appetite from feeling bad (0-3)"
local   	    labbadimportant_resc       "Felt unimportant to everyone (0-3)"
local	labdistress                        "Distress (12 questions)"
local			labthinkbad_resc           "Sits and thinks bad things"
local			labbaddream_resc           "Has bad dreams"
local			labbadagain_resc           "Seems like bad things happening again"
local			labbadbody_resc            "Sweat, feel warm, etc when thinking about bad things"
local			labbadaway_resc            "Stay away from places"
local			labbadspoiled_resc         "Feels that your heart is spoiled"
local			labbadtalk_resc            "Talks to yourself"
local			labbadfrust_resc           "Feels frustrated"
local			labbadspirit_resc          "Thinks someones spirit is hampering you"
local			labbaddry_resc             "Body is dry from worrying"
local			labbadsat_resc             "Heart does not feel satisfied"
local			labbadburn_resc            "Feels heart burning"
local	labwellbeing                       "Summary index of subjective well being (3)"
local		labladdernow                   "Absolute level today, 1-10 ladder"
local		labsubwellbeing                "Overall level hsubjective wellbeing, (1-30)"
local			labhappiness               "Happiness (1-10)"
local			labsatisfaction            "Satisfaction (1-10)"
local			labhealth                  "Health (1-10)"
local		labrelwellbeing                "Relative to your community, (1-40+)"
local			labladderrich              "Relative wealth (1-10)"
local			labladderresp              "Relative respect (1-10)"
local			labladderpower             "Relative power (1-10)"
local			labladderaccess            "Relative access (1-10)"
local  labsubabuse                        "Substance abuse (0-3 index)"
local          labdrinkboozeever          "Usually drinks (0-1)"
local          labgrassever               "Usually uses marijuana (0-1)"
local          labharddrugsever           "Usually takes hard drugs (0-1)"
local  labfam_network                     "Quality of social networks, (z-score)"
local     labpeerqualitystd               "Peers quality, mean of 30 questions"
local			labpeerschool              "Friend in school (0-1)"
local			labpeercommmtg             "Friend participates in community meetings (0-1)"
local			labpeerchurch              "Friend goes to church (0-1)"
local			labpeerwork                "Friend works hard (0-1)"
local			labpeerbusiness            "Friend has business or job (0-1)"
local			labpeersave                "Friend saves money regularly (0-1)"
local			labpeertrust               "Friend gives good advice (0-1)"
local			labpeershare               "Friend likely to share (0-1)"
local			labpeercheer               "Friend cheers you up (0-1)"
local			labpeerguard               "Fried trusted to guard valuables (0-1)"
local			labpeerbeg_resc            "Friend begs for money (-) (0-1)"
local			labpeerdrunk_resc          "Friend gets drunk regularly (-) (0-1)"
local			labpeerdrugs_resc          "Friend uses drugs regularly (-) (0-1)"
local			labpeerpickpocket_resc     "Friend pickpockets regularly (-) (0-1)"
local			labpeerburglary_resc       "Friend burglarizes (-) (0-1)"
local			labpeerrobbers_resc        "Friend is armed robber (-) (0-1)"
local			labpeergamble_resc         "Friend gambles (-) (0-1)"
local			labpeerexcom_resc          "Friend is ex-combatant (-) (0-1)"
local			labpeercomdr_resc          "Friend is former commander (-) (0-1)"
local			labpeersmallpal_resc       "Friend has small fights with others (-) (0-1)"
local		    labpeerbigpal_resc         "Friend has large fights with others (-) (0-1)"
local		labfamsupportindex             "Quality of family relations"
local		    labfamseeoften_resc        "Sees family often (0-3"
local		    labfamconcern_resc         "Family concerned about you (0-3)"
local		    labfamadvise_resc          "Receives encouragement from family (0-3)"
local		    labfamhelp_resc            "Receives help from family when in trouble (0-3)"
local		labrel_commanders              "Ex-commanders ties"
local			labpeercomdr               "Friend is ex-military commander (0-1)"
local			labrelcomm                 "Close relations with ex-military commander (0-1)"
local			labjobcomm                 "Receives job from ex-military commander (0-1)"
local			labrepcomm                 "Reports to commander now (0-1)"
local		labpatronlvl                   "Big men ties"
local			labptrnjob                 "Has patron for job (0-1)"
local			labptrnbiz                 "Has patron for business needs (0-1)"
local			labptrnfood                "Has patron for food (0-1)"
local			labptrnschl                "Has patron for school fees (0-1)"
local			labptrnhsing               "Has patron for housing (0-1)"

local    labtimepref                              "Forward-looking time preferences"
local    labtimepref_p                            "Patience ($\delta$) summary index, z-score"
local       labpatient_game_real                  "Incentivized trade-offs (0-6)"
local       labpatient_game_decl                  "Hypothetical trade-offs (0-6)"
local       labd_rate                             "Hypothetical discount rate (.9 to 4)"
local       labtimedecl_p                         "Self-reported survey questions on patience, z-score"
local       	labtime_decl_patienceladder        "Placing oneself on a 5-rung patience ladder (0-5)"
local       	labtime_decl_patient_resc          "I consider myself a patient person (0-3 scale)"
local       	labtime_decl_saveproblems_resc     "If I make good money, I save somefor future problems. (0-3 scale)"
local    labtimepref_t                            "Time inconsistency ($\beta$) summary index, z-score"
local      labincon_game_real                     "Incentivized trade-offs (-3 - 3)"
local      labincon_game_decl                     "Hypothetical trade-offs (-3 - 3)"
local      labincon_rate_dsct                     "Hypothetical discount rate (-3.1 - 3.1) "
local      labtimedecl_t                          "Self-reported (mean of 3), z-score"
local            labtime_decl_spendquick          "If I get money, I spend it quickly. (0-3)"
local            labtime_decl_celebrate           "If I make good money, I spend a lot celebrating with friends. (0-3)"
local            labth_avdmnywstingfrnds_resc     "I avoid going around friends who waste money. (0-3)"
local     labtimepref_real                        "Incentivized trade-offs (patience and time inconsistency), z-score"

local     labselfcontrolnolo                   "Self-control skills"
local  	  labimpulsivestd                      "Impulsiveness"
local           labbimpls_buy_resc             "I buy things quick without thinking"
local           labbimpls_act_resc             "I can take action before thinking (-)"
local           labbimpls_talk_resc            "I can just talk without thinking"
local           labbimpls_squirm_resc          "I am not set or relax at lectures"
local           labbimpls_concentrate_resc     "I can catch hard time thinking"
local           labbimpls_present_resc         "I believe in the present rather than the future"
local           labbimpls_control_resc         "I able to control myself (-)"
local           labtime_decl_regretspend_resc  "I spend money on things and regret it later"
local  	  labconscientiousstd                  "Conscientiousness"
local  			labcnsc_prepare_resc           "I am ready anytime"
local  			labcnsc_details_resc           "I pay attention to things good good"
local  			labcnsc_doitright_resc         "I get everyday work done right away"
local  			labcnsc_plans_resc             "I make plans and go by them"
local  			labcnsc_getby_resc             "I catch hard time to do my work (-)"
local  			labcnsc_work_resc              "I do unasked additional work after finishing my work"
local  			labcnsc_complete_resc          "I cant complete/finish things (-)"
local  			labcnsc_shirk_resc             "I run away from work (-)"
local  	  labgritstd                           "Perseverance/GRIT"
local  			labprsv_overcome_resc          "I have overcome hard times to subdue an important challenge"
local  			labprsv_ambitious_resc         "I can think big about my future"
local  			labprsv_discourage_resc        "Dificult conditions dont discourage me"
local  			labprsv_achieveimp_resc        "My greatest prayer is to be successful in life"
local  			labprsv_driven_resc            "Im trying hard to make it"
local  			labprsv_changeplan_resc        "I sometime make a plan but later on change my plan to a different one (-)"
local  			labprsv_achievenoimp_resc      "I do not think too much about big things/success (-)"
local  	  labrewardrespstd                     "Reward responsiveness"
local  			labbas_goallout_resc           "When I want something I can go to any corner to make sure I get it."
local  			labbas_noholds_resc            "When I go after something, even the devil in hell cant stop me"
local  			labbas_doforfun_resc           "Most of the time, I will do things for no other reason than that I will enjoy them"
local  			labbas_keepatit_resc           "When I am doing well at something, I will always like to be doing it."
local  			labbas_feelexcite_resc         "When I get something I want, I can jump with happiness and it gives me plenty strength."
local  			labbas_seeopp_resc             "When I see a chance to get something I really like, I can jump with happiness on the spot."
local  			labbas_feelstrongly_resc       "When good things happen to me, it affects me strongly"
local  			labbas_wincontest_resc         "I can jump with happiness when I win a lucky ticket"



********************************************************************************
***  *************************************************************************
********************************************************************************



local  dentfam_asb                     = 0
local   dentdrugssellever              = 2
local   dentstealnb                    = 2
local       dentstealtakethingsx       = 3
local       dentstealmistakecorrx      = 3
local       dentstealscrapex           = 3
local       dentstealpickpocketx       = 3
local       dentstealscamx             = 3
local       dentstealblackdeedx        = 3
local       dentstealmuggerx           = 3
local       dentstealarmedrobx         = 3
local   dentdisputes_all_z             = 2
local   	dentfightsmlneigh          = 3
local   	dentfightbigneigh          = 3
local   	dentfightphys              = 3
local   	dentfightweapon            = 3
local   	dentfightsmlleader         = 3
local   	dentfightbigleader         = 3
local   	dentfightsmlpolice         = 3
local   	dentfightbigpolice         = 3
local   	dentfine                   = 3
local   dentcarryweapon                = 2
local   dentarrested                   = 2
local   dentasbhostilstd               = 2
local   	dentbadreact_resc          = 3
local   	dentbadadvice_resc         = 3
local   	denthardjokes_resc         = 3
local   	dentbaddestroy_resc        = 3
local   	dentcheat_resc             = 3
local   	denttroublesome_resc       = 3
local   	dentfrustrated_resc        = 3
local   	dentthreaten_resc          = 3
local   	denttakethings_resc        = 3
local   	dentselfdiscipline_resc    = 3
local   	dentasb_reactlose_resc     = 3
local   	dentasb_reacthit_resc      = 3
local   	dentasb_reactdefend_resc   = 3
local   	dentasb_reacttease_resc    = 3
local   	dentasb_proontop_resc      = 3
local   	dentasb_provandalize_resc  = 3
local   	dentasb_procompetitor_resc = 3
local   	dentasb_prophysforce_resc  = 3
local   	dentasb_procuss_resc       = 3
local   dentdomabuse_z                 = 2
local   	dentmaccuse_resc           = 3
local   	dentmthreat_resc           = 3
local   	dentminsult_resc           = 3
local   	dentmhit_resc              = 3


local   dentfam_identity                         = 0
local    dentviolatt                             = 1
local	    dentattviolence                      = 2
local	    	dentnvstrangerrob                = 3
local	    	dentnvowetakesthg                = 3
local	    	dentnvknowncriminal              = 3
local	    	dentnvstorekeeperpunish_resc     = 3
local	    	dentnvkillstore_resc             = 3
local	    	dentnvbeatwoman                  = 3
local	    	dentnvdestroyproperty            = 3
local	    	dentnvstealfriendsgirl           = 3
local	    	dentnvcorruptleaderbeaten        = 3
local	    	dentnvbeatwife                   = 3
local	    	dentnvgirlrape                   = 3
local	    dentattcriminality                   = 2
local	    	dentattstchinamanbeat            = 3
local	    	dentattstblackmoney              = 3
local	    	dentattstnightops_resc           = 3
local	    	dentattsttaxiwallet              = 3
local	    	dentattstmoneydroptake           = 3
local	    	dentattstfamilylec               = 3
local	    	dentattstmoneybagtake            = 3
local	    	dentattstmoneyhangtake           = 3
local	    	dentattstroomvaluablestake       = 3
local	    	dentattselfdrugsell              = 3
local	    	dentattstknownindiv              = 3
local	    	dentattstifreturn                = 3
local	    dentpoliticalviol                    = 2
local	    	dentpvhypdemstpaid               = 3
local	    	dentpvhyppalpaid                 = 3
local	    	dentpvhyppalpaid200ld            = 3
local	    	dentpvhypdemstpaidwcheat         = 3
local	    	dentpvhyppalpaidwcheat           = 3
local	    	dentpvhyppalpaid200ldwcheat      = 3
local    dentappearanceindex                     = 1
local		    dentclothescond_resc             = 3
local		    dentshoecond_resc                = 3
local		    dentbreath_resc                  = 3
local		    dentcleanface_resc               = 3
local		    denthair_resc                    = 3
local		    dentfingernails_resc             = 3
local    dentprosocial                           = 1
local		dentgroups                           = 2
local		dentgroupleadindex                   = 2
local			dentleader                       = 3
local			dentbigman                       = 3
local			dentgroupcommleader              = 3
local			dentstartgroup_resc              = 3
local		dentpublicgoodcontrnumb              = 2
local		denttrustindex                       = 2
local			denttrustrelatives_resc          = 3
local			denttrusttleader_resc            = 3
local			denttrustngos_resc               = 3
local			denttrustipal_resc               = 3


local  dentfam_mental                      = 0
local  dentfam_mental_pos                  = 1
local  dentneuroticstd                     = 2
local			dentnrtc_sad_resc          = 3
local			dentnrtc_worry_resc        = 3
local			dentnrtc_threaten_resc     = 3
local			dentnrtc_offend_resc       = 3
local			dentnrtc_stress_resc       = 3
local			dentnrtc_disturb_resc      = 3
local			dentnrtc_relax_resc        = 3
local			dentnrtc_bother_resc       = 3
local	dentlocuscontrstd                  = 2
local			dentlc_choicesfuture_resc  = 3
local			dentlc_nocontrol_resc      = 3
local			dentlc_bizluck_resc        = 3
local			dentlc_tryhard_resc        = 3
local			dentlc_planswork_resc      = 3
local			dentlc_badluck_resc        = 3
local			dentlc_peoplestreets_resc  = 3
local			dentlc_success_resc        = 3
local	dentselfesteemstd                  = 2
local			dentse_satisfied_resc      = 3
local			dentse_useless_resc        = 3
local			dentse_fail_resc           = 3
local			dentse_respect_resc        = 3
local			dentse_goodperson_resc     = 3
local			dentse_good4nothing_resc   = 3
local			dentse_bizwell_resc        = 3
local			dentse_notproud_resc       = 3
local  dentfam_mental_dep                  = 1
local  dentdepression                      = 2
local    	    dentbaddo_resc             = 3
local   	    dentbadhear_resc           = 3
local   	    dentbadsad_resc            = 3
local   	    dentbadtired_resc          = 3
local   	    dentbadeat_resc            = 3
local   	    dentbadimportant_resc      = 3
local	dentdistress                       = 2
local			dentthinkbad_resc          = 3
local			dentbaddream_resc          = 3
local			dentbadagain_resc          = 3
local			dentbadbody_resc           = 3
local			dentbadaway_resc           = 3
local			dentbadspoiled_resc        = 3
local			dentbadtalk_resc           = 3
local			dentbadfrust_resc          = 3
local			dentbadspirit_resc         = 3
local			dentbaddry_resc            = 3
local			dentbadsat_resc            = 3
local			dentbadburn_resc           = 3
local	dentwellbeing                      = 1
local		dentladdernow                  = 2
local		dentsubwellbeing               = 2
local			denthappiness              = 3
local			dentsatisfaction           = 3
local			denthealth                 = 3
local		dentrelwellbeing               = 2
local			dentladderrich             = 3
local			dentladderresp             = 3
local			dentladderpower            = 3
local			dentladderaccess           = 3
local  dentsubabuse                        = 0
local          dentdrinkboozeever          = 2
local          dentgrassever               = 2
local          dentharddrugsever           = 2
local  dentfam_network                     = 0
local     dentpeerqualitystd               = 1
local			dentpeerschool             = 3
local			dentpeercommmtg            = 3
local			dentpeerchurch             = 3
local			dentpeerwork               = 3
local			dentpeerbusiness           = 3
local			dentpeersave               = 3
local			dentpeertrust              = 3
local			dentpeershare              = 3
local			dentpeercheer              = 3
local			dentpeerguard              = 3
local			dentpeerbeg_resc           = 3
local			dentpeerdrunk_resc         = 3
local			dentpeerdrugs_resc         = 3
local			dentpeerpickpocket_resc    = 3
local			dentpeerburglary_resc      = 3
local			dentpeerrobbers_resc       = 3
local			dentpeergamble_resc        = 3
local			dentpeerexcom_resc         = 3
local			dentpeercomdr_resc         = 3
local			dentpeersmallpal_resc      = 3
local		    dentpeerbigpal_resc        = 3
local		dentfamsupportindex            = 1
local		    dentfamseeoften_resc       = 3
local		    dentfamconcern_resc        = 3
local		    dentfamadvise_resc         = 3
local		    dentfamhelp_resc           = 3
local		dentrel_commanders             = 1
local			dentpeercomdr              = 3
local			dentrelcomm                = 3
local			dentjobcomm                = 3
local			dentrepcomm                = 3
local		dentpatronlvl                  = 1
local			dentptrnjob                = 3
local			dentptrnbiz                = 3
local			dentptrnfood               = 3
local			dentptrnschl               = 3
local			dentptrnhsing              = 3

local    denttimepref                             = 0
local    denttimepref_p                           = 1
local       dentpatient_game_real                 = 2
local       dentpatient_game_decl                 = 2
local       dentd_rate                            = 2
local       denttimedecl_p                        = 2
local       	denttime_decl_patienceladder      = 3
local       	denttime_decl_patient_resc        = 3
local       	denttime_decl_saveproblems_resc   = 3
local    denttimepref_t                           = 1
local      dentincon_game_real                    = 2
local      dentincon_game_decl                    = 2
local      dentincon_rate_dsct                    = 2
local      denttimedecl_t                         = 2
local            denttime_decl_spendquick         = 3
local            denttime_decl_celebrate          = 3
local            dentth_avdmnywstingfrnds_resc    = 3
local     denttimepref_real                       = 1

local     dentselfcontrolnolo                  = 0
local  	  dentimpulsivestd                     = 1
local           dentbimpls_buy_resc            = 3
local           dentbimpls_act_resc            = 3
local           dentbimpls_talk_resc           = 3
local           dentbimpls_squirm_resc         = 3
local           dentbimpls_concentrate_resc    = 3
local           dentbimpls_present_resc        = 3
local           dentbimpls_control_resc        = 3
local           denttime_decl_regretspend_resc = 3
local  	  dentconscientiousstd                 = 1
local  			dentcnsc_prepare_resc          = 3
local  			dentcnsc_details_resc          = 3
local  			dentcnsc_doitright_resc        = 3
local  			dentcnsc_plans_resc            = 3
local  			dentcnsc_getby_resc            = 3
local  			dentcnsc_work_resc             = 3
local  			dentcnsc_complete_resc         = 3
local  			dentcnsc_shirk_resc            = 3
local  	  dentgritstd                          = 1
local  			dentprsv_overcome_resc         = 3
local  			dentprsv_ambitious_resc        = 3
local  			dentprsv_discourage_resc       = 3
local  			dentprsv_achieveimp_resc       = 3
local  			dentprsv_driven_resc           = 3
local  			dentprsv_changeplan_resc       = 3
local  			dentprsv_achievenoimp_resc     = 3
local  	  dentrewardrespstd                    = 1
local  			dentbas_goallout_resc          = 3
local  			dentbas_noholds_resc           = 3
local  			dentbas_doforfun_resc          = 3
local  			dentbas_keepatit_resc          = 3
local  			dentbas_feelexcite_resc        = 3
local  			dentbas_seeopp_resc            = 3
local  			dentbas_feelstrongly_resc      = 3
local  			dentbas_wincontest_resc        = 3



/*
I am doing this so he can conserve a way to keep full variable labels intact
*/

foreach y in `varstolabel'{

  if "`lab`y''" =="" continue

    local lab`y'd `lab`y''

    if `dent`y''>0{
    forvalues t=1/`dent`y''{
        local lab`y'd `"\quad{`lab`y'd'}"'
    }
    }

   label variable `y'_`suffix' "`lab`y'd'"

   local lenght = strlen("`lab`y''")

   local lab`y'm "`lab`y''"
   if `lenght' >  80 local lab`y'm `"\thead[l]{ `= substr("`lab`y''", 1, 80)'  \\  `= substr("`lab`y''", 81, .)' }"'
   * if `lenght' > 160 local lab`y'm `"\thead[l]{ `= substr("`lab`y''", 1, 80)'  \\  `= substr("`lab`y''", 81, 160)' \\ `= substr("`lab`y''",161,.)' }"'
   * Seems that string functions of stata get crazy with lenghts higher than 100 m

        if `dent`y''>0{
        forvalues t=1/`dent`y'' {
            local lab`y'm `"\quad{`lab`y'm'}"'
        }
        }

    global lab`y'f "`lab`y'm'"
   }

end


varlabel_in , varstolabel(fam_asb         $asb_ind      ///
                          fam_identity    $identity_ind ///
                          timepref        $timepref_ind ///
                          selfcontrolnolo $forwlook_ind ///
                          fam_mental      $mental_ind   ///
                          fam_network     $famnet_ind   ///
                          fam_subabuse    $subabuse_ind ///
                          )  suffix(e)
